package test;/*        *//*** ����Ӣ��ESB����ķ��� *//*
	@SuppressWarnings("unchecked")
	public static <T> T invokeEsbService(String host, String port,
			String transCode, String requestXml) {
		String response = null;
		try {
			// ESB���ķ���ǰ���ܴ���
			TcpClient client = TcpClient.getTcpClient(transCode);
			requestXml = EsbEncryptUtil.encode(requestXml,
					EsbEncryptUtil.getDKey(), "GBK");
			response = client.call(host, Integer.valueOf(port), requestXml);// ����call����
			if (null != response) {
				response = EsbEncryptUtil.decode(response,
						EsbEncryptUtil.getDKey(), "GBK");
				// FileHelper.saveFileContent(dir+"_res_plan.txt", response);
				// response = new String (response.getBytes("GBK"),"UTF-8");
			}
		} catch (Exception e) {
			throw new AitpFunctionException(FunctionErrorCode.FI001,
					"�޷���ͨESB����ˣ�", e);
		}
		return (T) response;
	}


	*//**
	 * ǩ��
	 * @param obj
	 * @return Object
	 *//*
	*/